package edu.ynu.se.xiecheng.achitectureclass.GreenHouse.GreenhouseEntity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "greenhouse")
public class Greenhouse extends LogicEntity {
    @Column(nullable = false)
    private String name; // 大棚名称

    @Column(nullable = false)
    private String address; // 大棚地址

    @Column(nullable = false)
    private Double area; // 大棚面积
}
